Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replay: gracefully exit if tower load fails #35269

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

AshwinSekar
Copy link
Contributor

@AshwinSekar AshwinSekar commented Feb 20, 2024

From #35173 (comment)

Summary of Changes

Return a Result and set the exit flag if load_tower fails.

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (d223a43) 81.6% compared to head (4621bfa) 81.6%.
Report is 5 commits behind head on master.

❗ Current head 4621bfa differs from pull request most recent head c755a33. Consider uploading reports for the commit c755a33 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #35269     +/-   ##
=========================================
- Coverage    81.6%    81.6%   -0.1%     
=========================================
  Files         834      833      -1     
  Lines      224827   224824      -3     
=========================================
- Hits       183538   183512     -26     
- Misses      41289    41312     +23     

core/src/replay_stage.rs Outdated Show resolved Hide resolved
@AshwinSekar AshwinSekar changed the title replay: panic thread if tower load fails instead of exiting process replay: gracefully exit if tower load fails Feb 21, 2024
err
);
// drop(_exit) will set the exit flag, eventually tearing down the entire process
return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess break and return are effectively equivalent here, since the loop { ... } is the end of the closure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah should be the same

@AshwinSekar AshwinSekar merged commit 07955e7 into solana-labs:master Feb 22, 2024
35 checks passed
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants